//
//  BKFirstPageDataModel.m
//  bestkeep
//
//  Created by yons on 16/11/28.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BKFirstPageDataModel.h"

@implementation BKFirstPageDataModel

+(BKFirstPageDataModel *)getCurrentFPData:(FPDataType)type{
    CacheData *cacheData = [CacheData shareInstance];
    
    RLMResults<BKFirstPageDataModel*> *results = [cacheData search:[BKFirstPageDataModel class]];
    if (results.count > 0) {
        return  results.firstObject;
    }
    BKFirstPageDataModel *FPdata = [[BKFirstPageDataModel alloc]init];
    FPdata.FPData_first = NULL;
    FPdata.FPData_second_1 = NULL;
    FPdata.FPData_second_2 = NULL;
    FPdata.FPData_third = NULL;
    FPdata.FPData_title = NULL;
    [cacheData addObject:FPdata];
        
    return FPdata;
}
@end
